<%--
  Created by IntelliJ IDEA.
  User: 李文涛
  Date: 2024/8/28
  Time: 20:04
  To change this template use File | Settings | File Templates.
--%>
<%--
  Created by IntelliJ IDEA.
  User: 李文涛
  Date: 2024/8/10
  Time: 15:25
  To change this template use File | Settings | File Templates.
--%>
<jsp:useBean id="userInfoMap" scope="request" class="java.util.HashMap"/>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <title>后台</title>
    <link href="${pageContext.request.contextPath}/admin/css/glyphicon.css" rel="stylesheet" />
    <link href="${pageContext.request.contextPath}/admin/css/styles.css" rel="stylesheet" />
    <script src="${pageContext.request.contextPath}/admin/js/all.js"></script>
</head>
<body class="sb-nav-fixed">
<%@ include file="include/head.jsp" %>
<div id="layoutSidenav">
    <%@ include file="include/nav.jsp" %>
    <div id="layoutSidenav_content">
        <div class="container-fluid px-4">
            <div class="card mb-4">
                <div class="card-header">
                    <%--                    <i class="fas fa-table me-1"></i>--%>
                    <%--                    表格--%>
                </div>
                <div class="card-body">

                    <table id="datatablesSimple">
                        <thead>
                        <tr>
                            <th>活动名称</th>
                            <th>开始时间</th>
                            <th>结束时间</th>
                            <th>活动类型</th>
                            <th>状态</th>
                        </tr>
                        </thead>


                        <tbody>

                        <c:forEach items="${active}" var="act">
                            <tr>
                                <td>${act.name}</td>
                                <td>${act.beginTime}</td>
                                <td>${act.endTime}</td>
                                <td>${act.type}</td>


                                <td>
                                        <%--                                    <a href="${pageContext.request.contextPath}/#">--%>
                                    <a href="${pageContext.request.contextPath}/ThroughOutCollegeActiveServlet?id=${act.id}">
                                        <button type="button" class="btn btn-default">
                                            <i class="glyphicon glyphicon-pencil"></i>查看活动
                                        </button>
                                    </a>
                                </td>
                            </tr>
                        </c:forEach>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <%@ include file="include/foot.jsp" %>
    </div>
</div>
<script src="${pageContext.request.contextPath}/admin/js/bootstrap.min.js"></script>
<script src="${pageContext.request.contextPath}/admin/js/scripts.js"></script>
<script src="${pageContext.request.contextPath}/admin/js/simple-datatables@latest.js"></script>
<script src="${pageContext.request.contextPath}/admin/js/datatables-simple-demo.js"></script>

<script>

</script>


</body>
</html>

